#region Using

using System;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Text.RegularExpressions;
using System.Globalization;
using BlogEngine.Core;

#endregion

namespace BlogEngine.Core.Web.Controls
{
	/// <summary>
	/// The AlbumView.ascx that is located in the themes folder
	/// has to inherit from this class. 
	/// <remarks>
	/// It provides the basic functionaly needed to display a album.
	/// </remarks>
	/// </summary>
	/// 
	public class AlbumView : GenericView<Album>
	{
		/// <summary>
		/// Shorthand for CommentParent
		/// </summary>
		public Album Album
		{
			get
			{
				return CommentParent;
			}
			set
			{
				CommentParent = value;
			}
		}

		/// <summary>
		/// Page_Load - sets the number of columns
		/// </summary>
		protected void Page_Load(object sender, EventArgs e)
		{
			DataList albumContent = (DataList)FindControl("AlbumContent");
			albumContent.RepeatColumns = BlogSettings.Instance.AlbumColumns;
		}
	}
}